<?php
use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
    'as'            => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    //礼券总管理
    $router->resource('cards', CardsController::class);
    //商品管理
    $router->resource('products', ProductsController::class);
    //订单后台管理
    $router->resource('order', OrdersController::class);
    //礼券生成
    $router->resource('cardadd', CardaddController::class);

    //礼券超链接添加
    $router->get('addcards','CardaddController@AddCards');

});
